package com.erdos.hyt.mall.service;

import com.erdos.hyt.mall.model.MallConsigneeAddress;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auth Liurong
 * @date 2017/4/5.
 */
public interface MallConsigneeAddressService {

    /**
     * 根据用户ID获取最近使用的地址信息
     * @param userId
     * @return
     */
    public MallConsigneeAddress getLatelyAddress(Integer userId);

    /**
     * 添加或修改地址信息
     * @param addressId
     * @param userId
     * @param consignee
     * @param mobile
     * @param postNum
     * @param address
     * @return
     */
    public  MallConsigneeAddress saveOrUpdAddress(Integer addressId,Integer userId,String consignee,String mobile,String postNum,String address);
}
